Integrand size = 26, antiderivative size = 241 \[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=-\frac {3}{4} b^2 n^2 x^2+b n x^2 \left (a+b \log \left (c x^n\right )\right )-\frac {1}{2} x^2 \left (a+b \log \left (c x^n\right )\right )^2+\frac {b^2 n^2 \left (1+d f x^2\right ) \log \left (1+d f x^2\right )}{4 d f}-\frac {b n \left (1+d f x^2\right ) \left (a+b \log \left (c x^n\right )\right ) \log \left (1+d f x^2\right )}{2 d f}+\frac {\left (1+d f x^2\right ) \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+d f x^2\right )}{2 d f}-\frac {b^2 n^2 \operatorname {PolyLog}\left (2,-d f x^2\right )}{4 d f}+\frac {b n \left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (2,-d f x^2\right )}{2 d f}-\frac {b^2 n^2 \operatorname {PolyLog}\left (3,-d f x^2\right )}{4 d f} \]
-3/4*b^2*n^2*x^2+b*n*x^2*(a+b*ln(c*x^n))-1/2*x^2*(a+b*ln(c*x^n))^2+1/4*b^2 *n^2*(d*f*x^2+1)*ln(d*f*x^2+1)/d/f-1/2*b*n*(d*f*x^2+1)*(a+b*ln(c*x^n))*ln( d*f*x^2+1)/d/f+1/2*(d*f*x^2+1)*(a+b*ln(c*x^n))^2*ln(d*f*x^2+1)/d/f-1/4*b^2 *n^2*polylog(2,-d*f*x^2)/d/f+1/2*b*n*(a+b*ln(c*x^n))*polylog(2,-d*f*x^2)/d /f-1/4*b^2*n^2*polylog(3,-d*f*x^2)/d/f
Result contains complex when optimal does not.
Time = 0.15 (sec) , antiderivative size = 519, normalized size of antiderivative = 2.15 \[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=\frac {-d f x^2 \left (2 a^2-2 a b n+b^2 n^2+2 b^2 n \left (n \log (x)-\log \left (c x^n\right )\right )+4 a b \left (-n \log (x)+\log \left (c x^n\right )\right )+2 b^2 \left (-n \log (x)+\log \left (c x^n\right )\right )^2\right )+d f x^2 \left (2 a^2-2 a b n+b^2 n^2-2 b (-2 a+b n) \log \left (c x^n\right )+2 b^2 \log ^2\left (c x^n\right )\right ) \log \left (1+d f x^2\right )+\left (2 a^2-2 a b n+b^2 n^2+2 b^2 n \left (n \log (x)-\log \left (c x^n\right )\right )+4 a b \left (-n \log (x)+\log \left (c x^n\right )\right )+2 b^2 \left (-n \log (x)+\log \left (c x^n\right )\right )^2\right ) \log \left (1+d f x^2\right )+2 b n \left (2 a-b n-2 b n \log (x)+2 b \log \left (c x^n\right )\right ) \left (\frac {1}{2} d f x^2-d f x^2 \log (x)+\log (x) \log \left (1-i \sqrt {d} \sqrt {f} x\right )+\log (x) \log \left (1+i \sqrt {d} \sqrt {f} x\right )+\operatorname {PolyLog}\left (2,-i \sqrt {d} \sqrt {f} x\right )+\operatorname {PolyLog}\left (2,i \sqrt {d} \sqrt {f} x\right )\right )-b^2 n^2 \left (d f x^2-2 d f x^2 \log (x)+2 d f x^2 \log ^2(x)-2 \log ^2(x) \log \left (1-i \sqrt {d} \sqrt {f} x\right )-2 \log ^2(x) \log \left (1+i \sqrt {d} \sqrt {f} x\right )-4 \log (x) \operatorname {PolyLog}\left (2,-i \sqrt {d} \sqrt {f} x\right )-4 \log (x) \operatorname {PolyLog}\left (2,i \sqrt {d} \sqrt {f} x\right )+4 \operatorname {PolyLog}\left (3,-i \sqrt {d} \sqrt {f} x\right )+4 \operatorname {PolyLog}\left (3,i \sqrt {d} \sqrt {f} x\right )\right )}{4 d f} \]
(-(d*f*x^2*(2*a^2 - 2*a*b*n + b^2*n^2 + 2*b^2*n*(n*Log[x] - Log[c*x^n]) + 4*a*b*(-(n*Log[x]) + Log[c*x^n]) + 2*b^2*(-(n*Log[x]) + Log[c*x^n])^2)) + d*f*x^2*(2*a^2 - 2*a*b*n + b^2*n^2 - 2*b*(-2*a + b*n)*Log[c*x^n] + 2*b^2*L og[c*x^n]^2)*Log[1 + d*f*x^2] + (2*a^2 - 2*a*b*n + b^2*n^2 + 2*b^2*n*(n*Lo g[x] - Log[c*x^n]) + 4*a*b*(-(n*Log[x]) + Log[c*x^n]) + 2*b^2*(-(n*Log[x]) + Log[c*x^n])^2)*Log[1 + d*f*x^2] + 2*b*n*(2*a - b*n - 2*b*n*Log[x] + 2*b *Log[c*x^n])*((d*f*x^2)/2 - d*f*x^2*Log[x] + Log[x]*Log[1 - I*Sqrt[d]*Sqrt [f]*x] + Log[x]*Log[1 + I*Sqrt[d]*Sqrt[f]*x] + PolyLog[2, (-I)*Sqrt[d]*Sqr t[f]*x] + PolyLog[2, I*Sqrt[d]*Sqrt[f]*x]) - b^2*n^2*(d*f*x^2 - 2*d*f*x^2* Log[x] + 2*d*f*x^2*Log[x]^2 - 2*Log[x]^2*Log[1 - I*Sqrt[d]*Sqrt[f]*x] - 2* Log[x]^2*Log[1 + I*Sqrt[d]*Sqrt[f]*x] - 4*Log[x]*PolyLog[2, (-I)*Sqrt[d]*S qrt[f]*x] - 4*Log[x]*PolyLog[2, I*Sqrt[d]*Sqrt[f]*x] + 4*PolyLog[3, (-I)*S qrt[d]*Sqrt[f]*x] + 4*PolyLog[3, I*Sqrt[d]*Sqrt[f]*x]))/(4*d*f)
Time = 0.68 (sec) , antiderivative size = 227, normalized size of antiderivative = 0.94, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {2824, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int x \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2 \, dx\) |
\(\Big \downarrow \) 2824 |
\(\displaystyle -2 b n \int \left (\frac {\left (d f x^2+1\right ) \left (a+b \log \left (c x^n\right )\right ) \log \left (d f x^2+1\right )}{2 d f x}-\frac {1}{2} x \left (a+b \log \left (c x^n\right )\right )\right )dx+\frac {\left (d f x^2+1\right ) \log \left (d f x^2+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 d f}-\frac {1}{2} x^2 \left (a+b \log \left (c x^n\right )\right )^2\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -2 b n \left (-\frac {\operatorname {PolyLog}\left (2,-d f x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{4 d f}+\frac {\left (d f x^2+1\right ) \log \left (d f x^2+1\right ) \left (a+b \log \left (c x^n\right )\right )}{4 d f}-\frac {1}{2} x^2 \left (a+b \log \left (c x^n\right )\right )+\frac {b n \operatorname {PolyLog}\left (2,-d f x^2\right )}{8 d f}+\frac {b n \operatorname {PolyLog}\left (3,-d f x^2\right )}{8 d f}-\frac {b n \left (d f x^2+1\right ) \log \left (d f x^2+1\right )}{8 d f}+\frac {3}{8} b n x^2\right )+\frac {\left (d f x^2+1\right ) \log \left (d f x^2+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{2 d f}-\frac {1}{2} x^2 \left (a+b \log \left (c x^n\right )\right )^2\) |
-1/2*(x^2*(a + b*Log[c*x^n])^2) + ((1 + d*f*x^2)*(a + b*Log[c*x^n])^2*Log[ 1 + d*f*x^2])/(2*d*f) - 2*b*n*((3*b*n*x^2)/8 - (x^2*(a + b*Log[c*x^n]))/2 - (b*n*(1 + d*f*x^2)*Log[1 + d*f*x^2])/(8*d*f) + ((1 + d*f*x^2)*(a + b*Log [c*x^n])*Log[1 + d*f*x^2])/(4*d*f) + (b*n*PolyLog[2, -(d*f*x^2)])/(8*d*f) - ((a + b*Log[c*x^n])*PolyLog[2, -(d*f*x^2)])/(4*d*f) + (b*n*PolyLog[3, -( d*f*x^2)])/(8*d*f))
3.1.33.3.1 Defintions of rubi rules used
Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_ .))^(p_.)*((g_.)*(x_))^(q_.), x_Symbol] :> With[{u = IntHide[(g*x)^q*Log[d* (e + f*x^m)], x]}, Simp[(a + b*Log[c*x^n])^p u, x] - Simp[b*n*p Int[(a + b*Log[c*x^n])^(p - 1)/x u, x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, q}, x] && IGtQ[p, 0] && RationalQ[m] && RationalQ[q] && NeQ[q, -1] && (EqQ [p, 1] || (FractionQ[m] && IntegerQ[(q + 1)/m]) || (IGtQ[q, 0] && IntegerQ[ (q + 1)/m] && EqQ[d*e, 1]))
\[\int x {\left (a +b \ln \left (c \,x^{n}\right )\right )}^{2} \ln \left (d \left (\frac {1}{d}+f \,x^{2}\right )\right )d x\]
\[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=\int { {\left (b \log \left (c x^{n}\right ) + a\right )}^{2} x \log \left ({\left (f x^{2} + \frac {1}{d}\right )} d\right ) \,d x } \]
integral(b^2*x*log(d*f*x^2 + 1)*log(c*x^n)^2 + 2*a*b*x*log(d*f*x^2 + 1)*lo g(c*x^n) + a^2*x*log(d*f*x^2 + 1), x)
Timed out. \[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=\text {Timed out} \]
\[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=\int { {\left (b \log \left (c x^{n}\right ) + a\right )}^{2} x \log \left ({\left (f x^{2} + \frac {1}{d}\right )} d\right ) \,d x } \]
1/4*(2*b^2*x^2*log(x^n)^2 - 2*(b^2*(n - 2*log(c)) - 2*a*b)*x^2*log(x^n) + ((n^2 - 2*n*log(c) + 2*log(c)^2)*b^2 - 2*a*b*(n - 2*log(c)) + 2*a^2)*x^2)* log(d*f*x^2 + 1) - integrate(1/2*(2*b^2*d*f*x^3*log(x^n)^2 + 2*(2*a*b*d*f - (d*f*n - 2*d*f*log(c))*b^2)*x^3*log(x^n) + (2*a^2*d*f - 2*(d*f*n - 2*d*f *log(c))*a*b + (d*f*n^2 - 2*d*f*n*log(c) + 2*d*f*log(c)^2)*b^2)*x^3)/(d*f* x^2 + 1), x)
\[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=\int { {\left (b \log \left (c x^{n}\right ) + a\right )}^{2} x \log \left ({\left (f x^{2} + \frac {1}{d}\right )} d\right ) \,d x } \]
Timed out. \[ \int x \left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (\frac {1}{d}+f x^2\right )\right ) \, dx=\int x\,\ln \left (d\,\left (f\,x^2+\frac {1}{d}\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2 \,d x \]